<div class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-2 control-label">账号</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="inputUserName" placeholder="用户名" ng-model="userName">
        </div>
    </div>

    <div class="form-group">
        <label for="inputPassword" class="col-sm-2 control-label">密码</label>
        <div class="col-sm-10">
            <input type="password" class="form-control" id="inputPassword" placeholder="密码" ng-model="password">
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <input type="button" class="btn btn-success" ng-click="onLogin()" value="登陆" />
            <input type="button" class="btn btn-default" ng-click="onBack()" value="返回首页" />
        </div>
    </div>
</div>

